# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $


inherit distutils

MPV=(${PV//./ })
MY_PV="DS${MPV[1]}-R${MPV[2]}"
MY_PN="PythonCAD"
S="${WORKDIR}/${MY_PN}-${MY_PV}"
DESCRIPTION="CAD program written in PyGTK"
HOMEPAGE="http://www.pythoncad.org/"
LICENSE="GPL-2"
SRC_URI="http://www.pythoncad.org/releases/${MY_PN}-${MY_PV}.tar.bz2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RDEPEND=">=dev-lang/python-2.2
	>=sys-libs/zlib-1.1.4
	>=dev-python/pygtk-1.99.16"

src_install() {
	distutils_src_install
	exeinto /usr/bin
	doexe gtkpycad.py
	dodir /etc/${PN}
	cp prefs.py ${D}/etc/${PN}/
}

